<template>
  <div>
    <GpBaseTable primary-key="id" :columns="columns" :url="url" sync-data-url="/xcdhTrading/industryCapitalFlow/syncIndustryCapitalFlow" ></GpBaseTable>
  </div>
</template>

<script>
export default {
  name: "capitalFlowIndustry",
  data(){
    return {
      columns: [
        {
          "title": "交易日期",
          "key": "tradeDate",
          search: true ,
          is: "el-date-picker" ,
          attrs:{
            width: 100 ,
            "value-format":"yyyyMMdd"
          }
        },
        {
          "title": "板块名称",
          "key": "industry",
          op: "LIKE" ,
          search: true ,
        },
        {
          "title": "股票名称",
          "key": "leadStock",
          op: "LIKE" ,
          search: true ,
        },
        {
          key: 'showPrice' ,
          title: '股票价格',
          tableIs: "ShowGpPrice"
        },
        {
          "title": "指数涨跌幅",
          "key": "pctChange",
          tableIs: "NumberColumn"
        },
        {
          "title": "公司数量",
          "key": "companyNum"
        },
        {
          "title": "领涨股涨跌幅",
          "key": "pctChangeStock"
        },
        {
          "title": "领涨股最新价",
          "key": "closePrice"
        },
        {
          "title": "流入资金",
          "key": "netBuyAmount",
          tableIs: "YiNumberColumn"
        },
        {
          "title": "流出资金 ",
          "key": "netSellAmount",
          tableIs: "YiNumberColumn"
        },
        {
          "title": "净额",
          "key": "netAmount",
          tableIs: "YiNumberColumn"
        }
      ],
      url: "/xcdhTrading/industryCapitalFlow/v2/listByPage"
    }
  }
}
</script>

<style scoped>

</style>
